﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Net ;
namespace ChinaClipping.ClippingMaster.Model
{
   public class FtpInfo
    {
        private string _ftpurl ;
        private NetworkCredential _credential;

       public FtpInfo (string url,string userName,string password)
       {
       this._ftpurl =url;
           this._credential =new NetworkCredential (userName ,password );
       }

        /// <summary>
        /// 获取或设置上传剪报FTP地址
        /// </summary>
        public string FtpAddress
        {
            get { return _ftpurl; }
            set { _ftpurl = value; }
        }
       /// <summary>
       /// 获取身份验证方案
       /// </summary>
        public ICredentials Credential
        {
            get { return this._credential; }
        }

    }
}
